<template>
  <div class="home-background">
    <!--          头部-->
    <div class="search-header">
      <div class="search-box">
        <i class="el-icon-search header-top-icon"></i>
      </div>
      <div class="header-text">取消</div>
    </div>
    <!--      热门搜索-->
    <div class="hot-search">
      <div class="title">热门搜索</div>
      <div class="hot-content-left">
        <p>1 五条人</p>
        <p>3 与光同行</p>
        <p>5 对话达芬奇</p>
      </div>
      <div class="hot-content-right">
        <p>2 夏加尔的梦与爱情</p>
        <p>4 灵山—-田卫个人展</p>
      </div>
    </div>
    <!--      历史浏览-->
    <div class="history">
      <div class="title">历史</div>
      <div class="history-content">
        <p>五条人</p>
        <p>与光同行</p>
        <p>对话达芬奇</p>
        <p>夏加尔的梦与爱情</p>
        <p>灵山—-田卫个人展</p>
      </div>
    </div>
  </div>
</template>

<script>
    export default {
        name: "search"
    }
</script>

<style scoped>
  .home-background{
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #F2F2F2;
  }

  .search-header{
    display: flex;
    top: 0;
    right: 0;
    left: 0;
    background-color: white;
    line-height: 44px;
    box-shadow: 0px 2px 1px rgba(215,215,215,.15);
  }
  .search-box{
    display: inline-block;
    flex: 1;
    background-color: #F2F2F2;
    border-radius: 20px;
    height: 35px;
    margin-left: 10px;
    margin-top: 5px;
  }
  .header-top-icon{
    color: #7f7f7f;
    font-size: 26px;
    margin-left: 7px;
    font-weight: bold;
    margin-bottom: 5px;
  }
  .header-text{
    display: inline-block;
    width: 60px;
    text-align: center;
    font-size: 18px;
  }

  .hot-search{
    width: 100%;
    height: 180px;
  }
  .title{
    margin-left: 20px;
    margin-top: 20px;
    font-size: 20px;
  }
  .hot-content-left{
    display: inline-block;
    height: 150px;
    font-size: 20px;
    margin-left: 30px;
    vertical-align: top;
  }
  .hot-content-right{
    display: inline-block;
    height: 150px;
    font-size: 20px;
    margin-left: 30px;
    vertical-align: top;
  }

  .history{
    width: 100%;
    height: 180px;
  }
  .history-content{
    width: 100%;
    height: 100%;
    margin-left: 20px;
  }
  .history-content p{
    display: inline-block;
    font-size: 18px;
  }
</style>
